package com.xf.system.exception;

/**
 * @author xiefengf
 */
public class ErrorCodeAndMessage extends CodeAndMessage {
    public ErrorCodeAndMessage() {
    }

    public static ErrorCodeAndMessage create(Integer errorCode, String errorMessage) {
        ErrorCodeAndMessage errorCodeAndMessage = new ErrorCodeAndMessage();
        errorCodeAndMessage.setCode(errorCode);
        errorCodeAndMessage.setMessage(errorMessage);
        return errorCodeAndMessage;
    }
}
